package com.example.datajpa;

import com.example.datajpa.repositoryBean.CustomRepositoryFactoryBean;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

@SpringBootApplication
//repositoryFactoryBeanClass 指定factoryBean
@EnableJpaRepositories(repositoryFactoryBeanClass = CustomRepositoryFactoryBean.class)
public class DataJpaApplication {


    public static void main(String[] args) {
        SpringApplication.run(DataJpaApplication.class, args);
    }

}
